﻿package com.kuanter.kuanterauto.activity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

import android.content.Intent;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button;
import android.widget.ExpandableListView;
import android.widget.ExpandableListView.OnChildClickListener;
import android.widget.ExpandableListView.OnGroupClickListener;
import android.widget.ExpandableListView.OnGroupCollapseListener;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.kuanter.kuanterauto.R;
import com.kuanter.kuanterauto.adapter.ChildxhAdapter;
import com.kuanter.kuanterauto.adapter.TestExpandablelistAdapter;
import com.kuanter.kuanterauto.baseui.BaseActivity_NoBar;
import com.kuanter.kuanterauto.constants.MainConstants;
import com.kuanter.kuanterauto.utils.Animations;
import com.kuanter.kuanterauto.view.CustomExpandableListView;
import com.kuanter.kuanterauto.view.CustomLetterView;
import com.kuanter.kuanterauto.view.CustomLetterView.OnTouchingLetterChangedListener;
import com.umeng.analytics.MobclickAgent;

/**
 * 修改车型
 * 
 * @author soup
 * 
 */
public class XgcxActivity extends BaseActivity_NoBar implements
		OnChildClickListener, OnGroupCollapseListener,
		OnTouchingLetterChangedListener {

//	景逸   菱智  大切诺基  切诺基    帕杰罗速跑  戈蓝  帕杰罗   索纳塔   途胜
	
	// amg
	public static final String[] CX_0_0 = { "S65", "G55", "ML63", "G65", "C63",
			"CLS63", "SL63", "SLK55", "SLS" };
	// A 阿尔法·罗米欧
	public static final String[] CX_0_1 = { "147", "156", "159","166", "8C",
			"Giulietta", "GT", "MiTo", "Spider", "布雷拉" };
	// A 阿斯顿·马丁
	public static final String[] CX_0_2 = { "Cygnet", "DB7", "DB9","DBS","One-77",
			"Rapide", "V12", "V8", "Vanquish", "Virage" };
	// A 安驰
	public static final String[] CX_0_3 = { "威豹", "小公主", "雪豹" };
	// A 奥迪
	public static final String[] CX_0_4 = { "80", "90", "100", "200", "A1",
			"A2", "A3", "A4", "A4L", "A5", "A6", "A6L","A7", "A8", "A8L","Q3","Q5",
			"Q7", "R8", "RS3", "RS4", "RS5", "RS6", "S3", "S4","S5","S6","S8",
			"TT" };
	// A 奥兹莫比尔
	public static final String[] CX_0_5 = { "88", "98", "Achieva", "Alero",
			"Aurora", "Bravada", "Toronado", "短剑", "激情", "影子" };
	// B 巴博斯
	public static final String[] CX_1_0 = { "BRABUSS级" };
	// B 宝骏
	public static final String[] CX_1_1 = { "630" };
	// B 宝龙
	public static final String[] CX_1_2 = { "霸道", "菱惠", "菱骏", "菱麒", "天马座" };
	// B 宝马
	public static final String[] CX_1_3 = { "1系", "3系", "5系", "6系", "7系",
			"8系", "X1", "X3", "X5", "X6", "Z3", "Z4", "Z8", "M系",
			"Alpina-B7" };
	// B 保时捷
	public static final String[] CX_1_4 = { "Boxster", "Cayman", "Panamera",
			"911","918", "944", "959", "968", "Carrera-GT", "Panamera" };
	// B 北京汽车
	public static final String[] CX_1_5 = { "B40", "B61", "C30", "C60", "C70",
			"C70G", "C90L", "E系列", "306" };
	// B 北汽
	public static final String[] CX_1_6 = { "战旗", "角斗士", "陆霸", "骑士", "京城海狮",
			"雷驰", "陆铃", "旋风", "勇士", "域胜007", "御虎", "瑞纳", "领翔" };
	// B 北汽威旺
	public static final String[] CX_1_7 = { "306" };
	// B 奔驰
	public static final String[] CX_1_8 = { "AMG", "A级", "B级", "C级", "CL级",
			"CLK级", "CLS级", "E级", "G级", "GL级", "GLK级", "MB100", "ML级", "R级",
			"S级", "SL级", "SLK级", "SLR级", "凌特", "马可波罗", "斯宾特", "威霆", "唯雅诺" };
	// B 奔腾
	public static final String[] CX_1_9 = { "B50", "B70", "B90" };
	// B 本田
	public static final String[] CX_1_10 = { "CR-V", "CR-X-Del-Sol", "CR-Z",
			"Element", "FCX", "Insight", "NSX", "Passport", "Prelude",
			"Ridgeline", "S2000", "奥德赛", "奥德赛朗程", "飞度", "锋范", "歌诗图", "里程",
			"领航员", "理念", "气浪", "思迪", "时韵", "思铂睿", "思铭", "思域", "雅阁" };
	// B 比亚迪
	public static final String[] CX_1_11 = { "E6", "F0", "F3", "F3R", "F5",
			"F6", "G3", "G3R", "G6", "L3", "M6", "S6", "S8", "福莱尔" };
	// B 标致
	public static final String[] CX_1_12 = { "107", "1007", "206", "207",
			"307", "308", "3008", "405", "406", "407", "4007", "408", "4008",
			"505", "508", "5008", "607", "806", "807", "Partner", "RCZ",
			"Tepee" };
	// B 别克
	public static final String[] CX_1_13 = { "凯越","GL8","君威","君越","愿景","昂科雷","林荫大道","英朗" };
	// B 宾利
	public static final String[] CX_1_14 = { "Continental", "Superspo", "慕尚",
			"欧陆", "雅致", "雅俊" };
	// B 布加迪
	public static final String[] CX_1_15 = { "威航" };
	// C 昌河汽车
	public static final String[] CX_2_0 = { "爱迪尔", "面包", "福瑞达", "福运", "海豚",
			"海象", "骏马", "派喜" };
	// C 川汽野马
	public static final String[] CX_2_1 = { "F10", "F12", "F99" };
	// C 长安汽车
	public static final String[] CX_2_2 = { "奔奔", "CX20", "CX30", "CM8",
			"SENSE", "V802", "之星", "小卡", "星光", "星卡", "金牛星","都市彩虹", "杰勋", "镭蒙",
			"绿色新星", "欧雅", "星光", "星韵", "雪虎", "逸动", "运动星", "运通", "志翔" };
	// C 长城汽车
	public static final String[] CX_2_3 = { "凌傲", "哈弗H3", "哈弗H5", "哈弗H6",
			"哈弗M1", "哈弗M2", "哈弗M4", "哈弗SC6", "哈弗IF", "哈弗·派", "欧拉", "炫丽", "精灵",
			"腾翼C20", "腾翼C30", "腾翼C50", "腾翼C70", "腾翼V80", "腾翼C20R", "赛酷", "赛铃",
			"赛影", "酷熊", "金迪尔", "长城SC80", "风骏", "大脚兽", "嘉誉", "迷你SUV", "赛弗",
			"赛骏", "风骏" };
	// C 长丰汽车
	public static final String[] CX_2_4 = { "奇兵", "飞腾", "黑金刚", "猎豹CS6",
			"猎豹CS7", "骐菱", "长丰DUV", "飞铃", "飞扬" };

	// D DS
	public static final String[] CX_3_0 = { "DS", "DS3", "DS4", "DS5" };
	// D 达契亚
	public static final String[] CX_3_1 = { "Duster", "Logan", "Nova",
			"Sandero", "Solenza", "SuperNova" };
	// D 大迪
	public static final String[] CX_3_2 = { "霸道", "顺驰", "都市骏马", "都市威菱" };
	// D 大发
	public static final String[] CX_3_3 = { "Altis", "Atrai", "Copen", "Esse",
			"Materia", "Mira", "Move", "Sirion", "Sonica", "Tanto", "Terios" };
	// D 大宇
	public static final String[] CX_3_4 = { "G2X", "Gentra", "Korando",
			"Tosca", "Veritas", "Winstorm", "大王子", "典雅", "贵族", "卡罗斯", "拉赛蒂",
			"莱门斯", "蓝龙", "蓝天", "雷佐", "旅行家", "马蒂兹", "美男爵", "摩梭", "巧龙", "赛手",
			"政治家" };
	// D 大众
	public static final String[] CX_3_5 = { "宝来", "捷达", "开迪", "迈腾", "速腾", "劲情",
			"劲取","POLO", "朗逸", "领驭", "帕萨特", "桑塔纳", "桑塔纳2000", "桑塔纳3000", "途安",
			"途观", "志俊", "Eos", "FOX", "Routan", "T5-Multivan", "高尔夫","辉腾", "捷达",
			"开迪", "凯乐威", "迈腾", " 帕萨特", "尚酷", "尚酷R", "途观", "途锐", "夏朗" };
	// D 道奇
	public static final String[] CX_3_6 = { "Durango", "凯领", "挑战者", "蝰蛇", "酷威",
			"酷搏", "C-hallenger", "C-harger", "Dakota", "Dakota Quad", "Cab",
			"Journey", "Magnum", "Ram", "Spirit", "Stealth", "Stratus", "锋哲",
			"公羊", "霓虹", "拓远者", "无畏", "翼龙" };
	// D 帝豪
	public static final String[] CX_3_7 = { "EC6", "EC7", "EC8", "EV8", "EX7",
			"EX8", "EX9", "GT" };
	// D 东风汽车
	public static final String[] CX_3_8 = { "跑车", "奥丁", "帅客", "御轩", "景逸", "汗马",
			"菱智", "风行B20", "智跑", "狮跑", "秀尔", "赛拉图", "风神A60", "风神H30", "风神",
			"S30","景逸SUV" };
	// D 东南汽车
	public static final String[] CX_3_9 = { "V3菱悦", "东南V4", "东南V5", "希旺",
			"得利卡", "富利卡", "菱动", "菱利", "菱帅", "三菱戈蓝", "三菱翼神" };
	// F 法拉利
	public static final String[] CX_4_0 = { "348", "355", "360", "456", "458",
			"512", "550", " 575", "599", "612", "Dino", "Enzo",
			"F12 Berlinetta", "F149 California", "F430", "F50", "FF", "FXX" };
	// F 菲亚特
	public static final String[] CX_4_1 = { "Fiorino Qubo", "派朗", "派力奥",
			"派力奥周末风", "西耶那", "126", "500", "500C敞篷车", "600", "Albea", "Idea",
			"Qubo", "Sedici", "博悦", "多宝", "多能", "飞鹰", "菲跃", "古贝", "克罗玛", "领雅",
			"马力昂", " 派力奥", "朋多", "时尚", "乌诺", "西耶那", "小帆船", "熊猫", "周末风" };
	// F 丰田
	public static final String[] CX_4_2 = { "RAV4", "花冠", "皇冠", "卡罗拉", "锐志",
			"威驰", "兰德酷路泽", "陆地巡洋舰", "普锐斯", "普拉多", "汉兰达", "凯美瑞", "雅力士", "逸致",
			"埃尔法", "光冠", "海狮", "红杉", "佳美", "杰路驰", "考斯特", "美佳", "普瑞维亚", "赛利卡",
			"赛纳", "坦途", "小霸王", "雅力士", "亚洲龙", "4Runner", "Aygo", "Echo",
			"FJ酷路泽", "MARK X", "MR2", "Paseo", "Solara", "Supra", "T100",
			"Tacoma", "Tercel", "Venza", "Wish", "SciontC", "ScionxA",
			"ScionxB", "ScionxD" };
	// F 福迪汽车
	public static final String[] CX_4_3 = { "探索者II", "探索者III", "探索者6", "小超人",
			"雄狮", "雄狮F16" };
	// F 福特
	public static final String[] CX_4_4 = { "S", "福克斯", "嘉年华", "麦柯斯S-MAX",
			"蒙迪欧", "全顺", "500", "Bronco", "C-Max", "Contour", "Escort",
			"Everest", "Expedition", "F-150猛禽", "Flex", "Freestyle", "Fusion",
			"Galaxy", "GT", "Ka", "Kuga", "Probe", "S-Max", "Taurus-SHO",
			"Taurus-X", "爱虎", "房车E系列", "金牛座陶若斯", "雷鸟", "蒙迪欧", "锐界", "探索者",
			"探索者皮卡", "天霸", "天蝎座", "维多利亚皇冠", "稳达", "野马", "野马敞篷车", "依克诺莱恩",
			"翼虎Escape", "翼虎Maverick", "自由之星", "全顺Connect" };
	// F 福田
	public static final String[] CX_4_5 = { "MP", "迷迪", "风景", "风景快运", "奥铃",
			"风景爱尔法", "风景冲浪", "风景海狮", "福田传奇", "蒙派克", "拓路者" };
	// G GMC
	public static final String[] CX_5_0 = { "Savana", "Sierra", "3500", "商务之星",
			"Jimmy", "阿卡迪亚", "旅行", "使节", "西拉", "峡谷", "育空河" };
	// G 光冈
	public static final String[] CX_5_1 = { "Galue嘉路", "Himiko女王", "大蛇", "光冈我流" };
	// G 广汽
	public static final String[] CX_5_2 = { "传祺", "传祺GS5" };
	// H 哈飞
	public static final String[] CX_6_0 = { "路宝", "民意", "赛豹III系", "赛豹V系", "赛马",
			"路尊大霸王", "路尊小霸王", "百利", "松花江" };
	// H 海马
	public static final String[] CX_6_1 = { "丘比特", "欢动", "海福星", "3", "海马骑士",
			"福美来", "普力马", "海马C2", "C3", "M11", "Me", "王子", "福仕达", "福美来", "骑士" };
	// H 悍马
	public static final String[] CX_6_2 = { "H1", "H2", "H3" };
	// H 黑豹
	public static final String[] CX_6_3 = { "多功能车", "黑豹", "朗杰", "旅行家", "瑞途",
			"原动力" };
	// H 恒天
	public static final String[] CX_6_4 = { "途腾T1", "途腾T2" };
	// H 红旗
	public static final String[] CX_6_5 = { "HQE", "SUV", "盛世", "明仕", "旗舰",
			"世纪星" };
	// H 华晨
	public static final String[] CX_6_6 = { "中华H530", "中华V5", "金杯S50", "阁瑞斯" };
	// H 华普
	public static final String[] CX_6_7 = { "海域", "海尚", "海悦", "海景", "海迅", "海锋",
			"飙风", "海炫", " M203", "杰士达美鹿", "朗风" };
	// H 华泰
	public static final String[] CX_6_8 = { "B11", "B21", "圣达菲", "特拉卡", "宝利格" };
	// H 华翔
	public static final String[] CX_6_9 = { "富奇", "驭虎" };
	// H 黄海
	public static final String[] CX_6_10 = { "傲骏", "大柴神", "小柴神", "挑战者", "旗胜",
			"法萨特NCV", "翱龙", "傲羚", "傲龙CUV", "领航者CUV" };
	// H 霍顿
	public static final String[] CX_6_11 = { "Barina", "Calais", "Caprice",
			"Captiva", "Combo", "Commodore", "Cruze", "Epica", "Monaro",
			"Sportwagon", "Ute", "政治家" };
	// J JEEP吉普
	public static final String[] CX_7_0 = { "JEEP2500", "JEEP2700", "城市猎人",
			"大切诺基", "狂潮", "切诺基", "牧马人", "指挥官", "指南者", "自由客",
			"自由人" };
	// J 吉奥
	public static final String[] CX_7_1 = { "凯睿", "奥轩G3", "奥轩G5", "新柴神", "奥腾",
			"奥轩GX5", "财运", "吉奥GS50", "吉奥GX6", "吉奥凯旋", "猛将旅", "帅豹", "帅驰", "帅舰",
			"帅凌", "帅威", "星旺", "伊美" };
	// J 吉利
	public static final String[] CX_7_2 = { "豹风GT", "豪情", "金刚", "金鹰", "雳靓",
			"美人豹", "美日", "优利欧", "远景", "中国龙", "自由舰", "全球鹰GC7", "全球鹰GX2",
			"全球鹰GX7", "熊猫" };
	// J 江淮
	public static final String[] CX_7_3 = { "同悦", "和悦", "宾悦", "悦悦", "愿景", "瑞风",
			"瑞风和畅", "瑞鹰", "星悦" };
	// J 江铃
	public static final String[] CX_7_4 = { "全顺", "宝威", "驭胜", "运霸", "江铃轻卡",
			"宝典", "新世代全顺" };
	// J 江南
	public static final String[] CX_7_5 = { "风光", "TT", "奥拓", "传奇", "精灵" };
	// J 捷豹
	public static final String[] CX_7_6 = { "C", "XF", "XJ", "XK", "S-Type",
			"XJ220", "XKR" };
	// J 金杯
	public static final String[] CX_7_7 = { "S50", "阁瑞斯", "海星", "金杯霸道", "金杯海狮",
			"锐驰灵" };
	// J 九龙
	public static final String[] CX_7_8 = { "MPV", "A5", "A6", "天马商务" };

	// K 开瑞
	public static final String[] CX_8_0 = { "优优", "优劲", "优派", "优胜", "优雅" };
	// K 凯迪拉克
	public static final String[] CX_8_1 = { "CTS", "SRX", "赛威SLS", "Allante",
			"BLS", "BLS-Wagon", "Brougham", "Catera", "CTS","DTS", "Eldorado",
			"Seville", "STS", "XLR", "帝威", "凯雷德", "伍德" };
	// K 柯尼赛格
	public static final String[] CX_8_2 = { "CC8S", "CCR", "CCX", "CCXR" };
	// k 克莱斯勒
	public static final String[] CX_8_3 = { "铂锐", "300C", "大捷龙", "200", "300C",
			"300M", "Aspen", "Cirrus", "PT漫步者", "彩虹", "大捷龙", "帝王", "交叉火力",
			"君王", "纽约客", "赛百灵", "太平洋", "太阳舞", "五星卷云" };
	// L 拉达
	public static final String[] CX_9_0 = { "110", "111", "112", "Niva",
			"Priora", "Samara", "卡利纳" };
	// L 兰博基尼
	public static final String[] CX_9_1 = { "Aventador", "蝙蝠", "盖拉多" };
	// L 蓝旗亚
	public static final String[] CX_9_2 = { "Thema", "Thesis", "Ypsilon",
			"菲德拉", "穆沙", "三角洲" };
	// L 劳伦士
	public static final String[] CX_9_3 = { "E级", "G级", "ML级", "S级" };
	// L 劳斯莱斯
	public static final String[] CX_9_4 = { "古思特", "幻影", "银刺", "银灵", "银色天使",
			"银影" };
	// L 雷克萨斯
	public static final String[] CX_9_5 = { "CT", "ES", "GS", "GX", "HS", "IS",
			"LFA", "LS", "LX", "RX", "SC" };
	// L 雷诺
	public static final String[] CX_9_6 = { "Modus","风", "风景", "风朗", "甘果", "古贝",
			"科雷傲", "克里欧", "拉古那", "丽人行", "梅甘娜","塔利斯曼","太空车", "威赛帝", "纬度", "塔菲克" };
	// L 理念
	public static final String[] CX_9_7 = { "S1" };
	// L 力帆
	public static final String[] CX_9_8 = { "320", "520", "620", "720", "X60",
			"福顺", "丰顺" };
	// L 莲花
	public static final String[] CX_9_9 = { "L3", "L5" };
	// L 林肯
	public static final String[] CX_9_10 = { "Aviator", "Blackwood",
			"Continental", "LS", "Mark LT", "MKS", "MKT", "MKX", "MKZ",
			"Zephyr", "城市", "领航员" };
	// L 铃木
	public static final String[] CX_9_11 = { "奥拓", "羚羊", "尚悦", "雨燕", "北斗星",
			"昌铃王", "浪迪", "利亚纳", "派喜","奥拓", "超级维特拉", "吉姆尼", "凯泽西", "利亚纳",
			"天语 维特拉", "APV", "Esteem", "Forenza", "Reno", "Splash", "Swift",
			"Verona", "X-90", "XL7" };
	// L 陆风
	public static final String[] CX_9_12 = { "X6", "X8", "X9", "风华", "风尚",
			"新饰界" };
	// L 路虎
	public static final String[] CX_9_13 = { "卫士", "发现", "揽胜", "揽胜极光", "揽胜运动车",
			"神行者" };
	// L 路特斯
	public static final String[] CX_9_14 = { "2-Eleven", "Elan", "Elise",
			"Elite", "Esprit", "Europa", "Evora", "Excel", "Exige", "竞速", "竞悦" };
	// L 罗孚
	public static final String[] CX_9_15 = { "75", "TF" };
	// M 马自达
	public static final String[] CX_10_0 = { "2", "2劲翔", "3", "3星骋-两厢",
			"3星骋-三厢","6", "8", "睿翼", "323", "626", "929", "CX-5", "CX-7", "CX-9",
			"Millenia", "MPV", "MX-5", "MX-6", "Navajo", "RX-7", "RX-8",
			"Tribute" };
	// M 玛莎拉蒂
	public static final String[] CX_10_1 = { "总裁", "3200GT", "Coupe",
			"GranCabrio", "GT", "GranSport", "GranTurismo", "MC12", "斯派德" };
	// M 迈巴赫
	public static final String[] CX_10_2 = { "57", "62", "Exelero" };
	// M 迈凯伦
	public static final String[] CX_10_3 = { "MP4-12C" };
	// M 迷你
	public static final String[] CX_10_4 = { "Mini Coupe", "Clubman",
			"C-ountryman", "Mini-Cabrio敞篷", "Mini-Cooper", "Mini-one",
			"Roadster" };
	// M 名爵
	public static final String[] CX_10_5 = { "3系", "3系SW", "5系", "6系", "7系",
			"TF", "F", "XPower", "ZR", "ZS", "ZT", "ZT-T" };
	// N 纳智捷
	public static final String[] CX_11_0 = { "大7CEO", "大7SUV" };
	// O 欧宝
	public static final String[] CX_12_0 = { "Combo", "GT", "Insignia",
			"Meriva", "Signum", "Speedster", "Tigra", "安德拉", "可赛", "欧捷利",
			"欧美佳", "赛飞利", "威达", "雅特" };
	// O 欧郎
	public static final String[] CX_12_1 = { "欧郎" };
	// P 帕加尼
	public static final String[] CX_13_0 = { "帕加尼Zonda" };
	// P 庞蒂克
	public static final String[] CX_13_1 = { "Montana", "Aztek", "G3", "G5",
			"G6", "G8", "Grand Am", "GTO", "Solstice", "Torrent", "Vibe",
			"博纳维尔", "火鸟", "太阳火" };
	// Q 奇瑞
	public static final String[] CX_14_0 = { "东方之子", "A1", "A3", "A5", "E5",
			"M14", "QQ3", "QQ6", "QQme", "旗云1", "旗云2", "旗云3", "旗云5", "旗云E3",
			"瑞虎", "V5", "风云2" };
	// Q 启辰
	public static final String[] CX_14_1 = { "启辰" };
	// Q 起亚
	public static final String[] CX_14_2 = { "福瑞迪", "嘉华", "普莱特", "K2", "K5",
			"千里马", "锐欧", "赛拉图", "赛拉图欧风", "狮跑", "秀尔", "远舰", "智跑", "cee-d", "K9",
			"Picanto", "Sephia", "Venga", "霸锐", "贝斯塔", "帝国", "佳乐", "嘉华", "凯尊",
			"康柯德", "丽欧", "欧迪玛", "欧菲莱斯", "狮跑", "首都", "速迈", "索兰托", "威客", "维斯特" };
	// Q 庆铃
	public static final String[] CX_14_3 = { "竞技者", "皮卡" };
	// Q 全球鹰
	public static final String[] CX_14_4 = { "EK", "GC5", "GC7", "GV5", "GX2",
			"GX7", "IG", "熊猫", "自由舰", "远景" };
	// R 日产
	public static final String[] CX_15_0 = { "骏逸", "蓝鸟", "骊威", "楼兰", "玛驰",
			"奇骏", "骐达", "启辰D50", "天籁", "逍客", "轩逸", "阳光", "颐达", "奥丁", "多功能商用车",
			"帕拉丁", "帕拉骐", "D22皮卡", "NV200", "锐骐", "锐骐皮卡", "帅客", "御轩", "100NX",
			"300ZX", "350Z", "370Z", "Almera", "Armada", "Axxess", "Cube",
			"Frontier", "GT-R", "March", "Micra", "Murano", "Pulsar", "Rogue",
			"Sentra", "Silvia", "Titan", "奥蒂玛", "风度", "风雅", "公爵王", "贵士", "桂冠",
			"佳奔", "蓝鸟", "马克西马", "帕拉丁", "奇骏", "骐达", "途乐", "西玛", "寻路者", "阳光" };
	// R 荣威
	public static final String[] CX_15_1 = { "上海电动汽车", "350", "550", "750",
			"R95", "W5" };
	// R 瑞麒
	public static final String[] CX_15_2 = { "S18电动轿车", "G3", "G5", "G6", "M1",
			"M2", "M5", "X1", "Z5", "派拉蒙" };
	// S Smart
	public static final String[] CX_16_0 = { "Crossblade", "ForFour", "ForTwo",
			"Roadster" };
	// S SPIRRA
	public static final String[] CX_16_1 = { "斯派朗" };
	// S 萨博
	public static final String[] CX_16_2 = { "900", "9000", "9-2", "9-3",
			"9-3-X-Cross", "9-5", "9-7X" };
	// S 三菱
	public static final String[] CX_16_3 = { "欧蓝德", "帕杰罗速跑", "帕杰罗", "戈蓝", "君阁",
			"蓝瑟", "菱绅", "翼神", "ASX劲炫", "Diamante", "Endeaver", "Expo", "GTO",
			"Maven", "Mirage", "Pajero", "Starion", "格蓝迪", "欧蓝德",
			"帕杰罗劲畅", "太空", "西格玛", "伊柯丽斯", "翼豪陆神" };
	// S 世爵
	public static final String[] CX_16_4 = { "C12", "C8", "D12", "D8" };
	// S 双环
	public static final String[] CX_16_5 = { "来宝S-RV", "来旺", "SCEO", "小贵族" };
	// S 双龙
	public static final String[] CX_16_6 = { "爱腾", "柯兰多", "雷斯特", "路帝", "享御",
			"主席" };
	// S 水星
	public static final String[] CX_16_7 = { "Capri", "Mariner", "Montego",
			"Monterey", "Mystique", "Sable", "Tracer", "大侯爵", "登山家", "掠夺者",
			"美洲狮", "米兰", "田园" };
	// S 斯巴鲁
	public static final String[] CX_16_8 = { "Baja", "Dex", "Exiga", "Justy",
			"Pleo", "R1", "R2", "Sambar", "XV", "傲虎", "驰鹏", "力狮", "力狮旅行车",
			"森林人", "斯特拉", "小公主", "翼豹" };
	// S 斯柯达
	public static final String[] CX_16_9 = { "昊锐", "晶锐", "明锐", "Roomster",
			"Yeti", "法比亚", "弗雷西亚", "福尔曼", "欧雅", "速派" };
	// T 塔塔
	public static final String[] CX_17_0 = { "Indica", "Indigo", "Indigo旅行车",
			"Nano", "Safari", "Sumo" };
	// T 腾势
	public static final String[] CX_17_1 = { "概念车" };
	// T 天马
	public static final String[] CX_17_2 = { "风驰", "风锐", "海狮", "骏驰", "英雄" };
	// T 土星
	public static final String[] CX_17_3 = { "L-Series", "Outlook", "S", "Vue",
			"埃恩", "埃恩Coupe", "奥拉", "天空", "雅特", "驿马" };
	// W 威麟
	public static final String[] CX_18_0 = { "H3", "H5", "V5", "X5" };
	// W 威旺
	public static final String[] CX_18_1 = { "306" };
	// W 威兹曼
	public static final String[] CX_18_2 = { "GT", "敞篷车" };
	// W 沃尔沃
	public static final String[] CX_18_3 = { "S40", "S80L", "240", "240",
			"740", "760", "780", "850", " 940", "960", "C30", "C70", "S40",
			"S60", "S70", "S80", "S90", "V40", "V50", "V60", "V70", "XC60",
			"XC70" };
	// W 五菱
	public static final String[] CX_18_4 = { "PN系列货车", "宝骏630", "宏光", "鸿途",
			"荣光", "之光", "小旋风", "兴旺", "扬光", "大发" };
	// W 五十铃
	public static final String[] CX_18_5 = { "Amigo", "Ascender", "Axiom",
			"Hombre", "I-Mark", "Oasis", "Piazza", "Rodeo", "VehiCROSS", "突路霸" };
	// X 西亚特
	public static final String[] CX_19_0 = { "Altea", "AFreetrack", "Altea-XL",
			"Exeo", "Inca", "Marbella", "阿尔汉布拉", "阿罗莎", "科多巴", "利昂 图雷多伊比萨" };
	// X 夏利
	public static final String[] CX_19_1 = { "夏利" };
	// X 现代
	public static final String[] CX_19_2 = { "领翔", "名驭", "瑞纳", "索纳塔", "途胜",
			"i30", "ix35", "雅绅特", "伊兰特", "御翔", "悦动", "Atos", "Entourage",
			"Galloper", "Getz", "H-1辉翼", "i10", "i20", "i30", "i45", "i800",
			"ix35", "Satellite", "Scoupe", "Trajet", "飞思", "君爵", "酷派", "劳恩斯",
			"劳恩斯酷派", "美佳", "圣达菲", "世纪百年", "特拉卡-得利", "王朝", "维拉克斯",
			"新胜达", "雅科仕", "雅尊" };
	// X 雪佛兰
	public static final String[] CX_19_3 = { "爱唯欧", "景程", "科鲁兹", "科帕奇", "乐骋",
			"乐风", "迈瑞宝", "赛欧", "乐驰", "Beretta", "Camaro", "Cavalier", "HHR",
			"Malibu", "Rezzo", "Suburban", "Traverse", "Uplander", "阿斯特罗",
			"春分", "豪放", "景程", "开拓者", "柯西嘉", "科宝", "科鲁兹", "科帕奇", "克尔维特", "乐骋",
			"乐驰", "罗米娜", "蒙特卡洛", "普林斯", "全能先锋", "斯帕可", "特使", "沃蓝达", "雪崩",
			"英帕拉", "追踪者" };
	// X 讴歌
	public static final String[] CX_19_4 = { "Integra", "MDX", "NSX", "RDX",
			"RL", "RSX", "SLX", "TL", "TSX", "Vigor", "ZDX" };
	// X 雪铁龙
	public static final String[] CX_19_5 = { "爱丽舍", "毕加索", "富康", "凯旋", "赛纳",
			"世嘉", "C2", "C5", "Berlingo", "C1", "C3", "C4", "C6", "C8",
			"C-Crosser", "DS3", "DS4", "尼莫Combi", "萨拉毕加索", "桑蒂雅" };
	// Y 一汽
	public static final String[] CX_20_0 = { "夏利N5", "威乐", "威姿", "威志", "森雅",
			"特锐", "幸福使者", "佳宝", "解放陆豹", "自由风", "欧朗" };
	// Y 依维柯
	public static final String[] CX_20_1 = { "得意", "都灵V", "宝迪", "依维柯" };
	// Y 英菲尼迪
	public static final String[] CX_20_2 = { "Essence", "EX", "FX", "G Coupe",
			"G Sedan", "M", "QX", "G37敞篷", "Q45" };
	// Y 英伦汽车
	public static final String[] CX_20_3 = { "SC7(海景)", "TX4", "吉利GE", "SC5",
			"SC6", "金刚", "金鹰" };
	// Y 永源
	public static final String[] CX_20_4 = { "UFO", "飞碟UFO", "永源A380" };
	// Z 中华
	public static final String[] CX_21_0 = { "H530", "SUV", "尊驰", "酷宝", "骏捷",
			"V5" };
	// Z 中兴
	public static final String[] CX_21_1 = { "长铃皮卡", "驰野", "福星", "老虎",
			"旗舰A9皮卡", "旗舰SUV", "田野", "万禧龙", "威虎", "无限V3", "无限V5", "无限V7" };
	// Z 众泰
	public static final String[] CX_21_2 = { "乐睿", "2008", "M300", "T200",
			"T300", "T600", "Z200", "Z200HB", "Z300", "TT", "5008", "V10" };

	// 汽车品牌图片
	private final int[] PINPAI_IMGS_A = { R.drawable.amg,  
			R.drawable.aerfaluomiou, R.drawable.asidunmading, R.drawable.anchi,
			R.drawable.aodi, R.drawable.aozimobier };

	private final int[] PINPAI_IMGS_B = { R.drawable.babosi, R.drawable.baojun,
			R.drawable.baolong, R.drawable.baoma, R.drawable.baoshijie,
			R.drawable.beijingqiche, R.drawable.beiqi, R.drawable.weiwang,
			R.drawable.benchi, R.drawable.benteng, R.drawable.bentian,
			R.drawable.biyadi, R.drawable.biaozhi, R.drawable.bieke,
			R.drawable.binli, R.drawable.bujiadi };

	private final int[] PINPAI_IMGS_C = { R.drawable.changheqiche,
			R.drawable.chuanqiyema, R.drawable.changanqiche,
			R.drawable.changchengqiche, R.drawable.changfengqiche };

	private final int[] PINPAI_IMGS_D = { R.drawable.ds, R.drawable.daqiya,
			R.drawable.dadi, R.drawable.dafa, R.drawable.dayu,
			R.drawable.dazhong, R.drawable.daoqi, R.drawable.dihao,
			R.drawable.dongfeng, R.drawable.dongnanqiche };

	private final int[] PINPAI_IMGS_F = { R.drawable.falali,
			R.drawable.feiyate, R.drawable.fengtian, R.drawable.fudiqiche,
			R.drawable.fute, R.drawable.futian };

	private final int[] PINPAI_IMGS_G = { R.drawable.gmc, R.drawable.guanggang,
			R.drawable.guangqijituan };

	private final int[] PINPAI_IMGS_H = { R.drawable.hafei, R.drawable.haima,
			R.drawable.hanma, R.drawable.heibao, R.drawable.hengtian,
			R.drawable.hongqi, R.drawable.huachen, R.drawable.huapu,
			R.drawable.huatai, R.drawable.huaxiang, R.drawable.huanghai,
			R.drawable.huodun };

	private final int[] PINPAI_IMGS_J = { R.drawable.jeepjipu, R.drawable.jiao,
			R.drawable.jili, R.drawable.jianghuai, R.drawable.jiangling,
			R.drawable.jiangnan, R.drawable.jiebao, R.drawable.jinbei,
			R.drawable.jiulong };

	private final int[] PINPAI_IMGS_K = { R.drawable.kairui,
			R.drawable.kaidilake, R.drawable.kenisaige, R.drawable.kelaisile };

	private final int[] PINPAI_IMGS_L = { R.drawable.lada,
			R.drawable.lanbojini, R.drawable.lanqiya, R.drawable.laolunshi,
			R.drawable.laosilaisi, R.drawable.leikesasi, R.drawable.leinuo,
			R.drawable.linian, R.drawable.lifan, R.drawable.lianhua,
			R.drawable.linken, R.drawable.lingmu, R.drawable.lufeng,
			R.drawable.luhu, R.drawable.lutesi, R.drawable.luofu };

	private final int[] PINPAI_IMGS_M = { R.drawable.mazida,
			R.drawable.mashaladi, R.drawable.maibahe, R.drawable.maikailun,
			R.drawable.mini, R.drawable.mingjue, R.drawable.nazhijie };

	private final int[] PINPAI_IMGS_N = { R.drawable.nazhijie };

	private final int[] PINPAI_IMGS_O = { R.drawable.oubao, R.drawable.oulang };

	private final int[] PINPAI_IMGS_P = { R.drawable.pajiani,
			R.drawable.pangdike };

	private final int[] PINPAI_IMGS_Q = { R.drawable.qirui, R.drawable.qichen,
			R.drawable.qiya, R.drawable.qingling, R.drawable.quanqiuying };

	private final int[] PINPAI_IMGS_R = { R.drawable.richan,
			R.drawable.rongwei, R.drawable.ruilin };

	private final int[] PINPAI_IMGS_S = { R.drawable.smart, R.drawable.spirra,
			R.drawable.sabo, R.drawable.sanling, R.drawable.shijue,
			R.drawable.shuanghuan, R.drawable.shuanglong, R.drawable.shuixing,
			R.drawable.sibalu, R.drawable.sikeda };

	private final int[] PINPAI_IMGS_T = { R.drawable.tata, R.drawable.tengshi,
			R.drawable.tianma, R.drawable.tuxing };

	private final int[] PINPAI_IMGS_W = { R.drawable.weilin,
			R.drawable.weiwang, R.drawable.weiziman, R.drawable.woerwo,
			R.drawable.wuling, R.drawable.wushiling };

	private final int[] PINPAI_IMGS_X = { R.drawable.xiyate, R.drawable.xiali,
			R.drawable.xiandai, R.drawable.xuefulan, R.drawable.xuge,
			R.drawable.xuetielong };

	private final int[] PINPAI_IMGS_Y = { R.drawable.yiqi, R.drawable.yiweike,
			R.drawable.yingfeinidi, R.drawable.yinglunqiche,
			R.drawable.yongyuan };

	private final int[] PINPAI_IMGS_Z = { R.drawable.zhonghua,
			R.drawable.zhongxing, R.drawable.zhongtai };

	// 汽车品牌
	private final String[] PINPAI_STRS_A = { "amg", "阿尔法·罗米欧", "阿斯顿·马丁", "安驰", 
			"奥迪", "奥兹莫比尔" };

	private final String[] PINPAI_STRS_B = { "巴博斯", "宝骏", "宝龙", "宝马", "保时捷",
			"北京汽车", "北汽", "北汽威旺", "奔驰", "奔腾", "本田", "比亚迪", "标致", "别克", "宾利",
			"布加迪" };

	private final String[] PINPAI_STRS_C = { "昌河汽车", "川汽野马", "长安汽车", "长城汽车",
			"长丰汽车" };

	private final String[] PINPAI_STRS_D = { "DS", "达契亚", "大迪", "大发", "大宇",
			"大众", "道奇", "帝豪", "东风汽车", "东南汽车" };

	private final String[] PINPAI_STRS_F = { "法拉利", "菲亚特", "丰田", "福迪汽车", "福特",
			"福田" };

	private final String[] PINPAI_STRS_G = { "GMC", "光冈", "广汽" };

	private final String[] PINPAI_STRS_H = { "哈飞", "海马", "悍马", "黑豹", "恒天",
			"红旗", "华晨", "华普", "华泰", "华翔", "黄海", "霍顿" };

	private final String[] PINPAI_STRS_J = { "JEEP吉普", "吉奥", "吉利", "江淮", "江铃",
			"江南", "捷豹", "金杯", "九龙" };

	private final String[] PINPAI_STRS_K = { "开瑞", "凯迪拉克", "柯尼赛格", "克莱斯勒" };

	private final String[] PINPAI_STRS_L = { "拉达", "兰博基尼", "蓝旗亚", "劳伦士",
			"劳斯莱斯", "雷克萨斯", "雷诺", "理念", "力帆", "莲花", "林肯", "铃木", "陆风", "路虎",
			"路特斯", "罗孚" };

	private final String[] PINPAI_STRS_M = { "马自达", "玛莎拉蒂", "迈巴赫", "迈凯伦", "迷你",
			"名爵" };

	private final String[] PINPAI_STRS_N = { "纳智捷" };

	private final String[] PINPAI_STRS_O = { "欧宝", "欧郎" };

	private final String[] PINPAI_STRS_P = { "帕加尼", "庞蒂克" };

	private final String[] PINPAI_STRS_Q = { "奇瑞", "启辰", "起亚", "庆铃", "全球鹰" };

	private final String[] PINPAI_STRS_R = { "日产", "荣威", "瑞麒" };

	private final String[] PINPAI_STRS_S = { "Smart", "SPIRRA", "萨博", "三菱",
			"世爵", "双环", "双龙", "水星", "斯巴鲁", "斯柯达" };

	private final String[] PINPAI_STRS_T = { "塔塔", "腾势", "天马", "土星" };

	private final String[] PINPAI_STRS_W = { "威麟", "威旺", "威兹曼", "沃尔沃", "五菱",
			"五十铃" };

	private final String[] PINPAI_STRS_X = { "西亚特", "夏利", "现代", "雪佛兰", "讴歌",
			"雪铁龙" };

	private final String[] PINPAI_STRS_Y = { "一汽", "依维柯", "英菲尼迪", "英伦汽车", "永源" };

	private final String[] PINPAI_STRS_Z = { "中华", "中兴", "众泰" };

	private final String[] ZIMU = { "A", "B", "C", "D", "F", "G", "H", "J",
			"K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "W", "X", "Y",
			"Z" };

	private CustomExpandableListView expandable;
	private CustomLetterView letter_view;

	private ArrayList<String> groupList = new ArrayList<String>();
	private ArrayList<ArrayList<String>> childList = new ArrayList<ArrayList<String>>();
	private ArrayList<ArrayList<Integer>> childList_IMG = new ArrayList<ArrayList<Integer>>();
	private TestExpandablelistAdapter testExpandablelistAdapter;

	public static  RelativeLayout rl_childxh;
	public static ImageView iv_yy_xxpp=null;
	private Button btTopLeft_xzpp=null;
	private TextView tv_childpp = null;
	private ListView lv_childxh = null;
	private ChildxhAdapter adapter = null;
	private Map<String, String[]> cxs = new HashMap<String, String[]>();

	private ArrayList<String> childxh = new ArrayList<String>();
	private Animations a = null;
	 int i = 0;
	 
	 private String pp="";
	 private String xh="";
	 int position;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.xxpp);

		Intent intent = getIntent();
		position = intent.getIntExtra("position", -1);
		
		initChildXH();
		initGroupList();
		initChildList();
		initChildList_img();

		initView();
		setListener();
	}

	@Override
	public void onClick(View v) {
		switch(v.getId()){
		case R.id.btTopLeft_xzpp:
			finish();
			break;
		}
	}

	private void initView() {
		a = new Animations(this);
		rl_childxh = (RelativeLayout) findViewById(R.id.rl_childxh);
		tv_childpp = (TextView) findViewById(R.id.tv_childpp);
		lv_childxh = (ListView) findViewById(R.id.lv_childxh);
		btTopLeft_xzpp=(Button) findViewById(R.id.btTopLeft_xzpp);
		iv_yy_xxpp=(ImageView) findViewById(R.id.iv_yy_xxpp);
		
		expandable = (CustomExpandableListView) findViewById(R.id.expandable);
		expandable.setHeaderView(getLayoutInflater().inflate(
				R.layout.expandablelist_group_item, expandable, false));
		letter_view = (CustomLetterView) findViewById(R.id.letter_view);

		

		i = rl_childxh.getVisibility();

		// 设置adapter并且全部展开
		testExpandablelistAdapter = new TestExpandablelistAdapter(this,
				expandable, groupList, childList, childList_IMG);
		expandable.setAdapter(testExpandablelistAdapter);
		int groupSize = groupList.size();
		for (int i = 0; i < groupSize; i++) {
			expandable.expandGroup(i);
		}

		// 获取密度
		DisplayMetrics dm = new DisplayMetrics();
		getWindowManager().getDefaultDisplay().getMetrics(dm);
		letter_view.setList(groupList, dm);
		letter_view.invalidate();
	}

	/**
	 * 设置监听
	 */
	private void setListener() {
		btTopLeft_xzpp.setOnClickListener(this);
		letter_view.setOnTouchingLetterChangedListener(this);
		expandable.setOnChildClickListener(this);
		expandable.setOnGroupCollapseListener(this);
		expandable.setOnGroupClickListener(new OnGroupClickListener() {

			@Override
			public boolean onGroupClick(ExpandableListView parent, View v,
					int groupPosition, long id) {
				return false;
			}
		});
		
		lv_childxh.setOnItemClickListener(new OnItemClickListener() {
			public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
					long arg3) {
				xh=childxh.get(arg2);
				Intent intent=new Intent();
				intent.putExtra("pp", pp);
				intent.putExtra("xh", xh);
				intent.putExtra("position", position);
				setResult(MainConstants.SUCCESS, intent);
				finish();
//				rl_childxh.setVisibility(View.GONE);
//				iv_yy_xxpp.setVisibility(View.GONE);
//				showToast("您选择了："+pp+"-"+xh);
			}
		});
		
		
		
//		expandable.setOnScrollListener(mScrollListener);
	}
	
	@Override
	protected void onResume() {
		MobclickAgent.onResume(this);
		super.onResume();
	}
	
	@Override
	protected void onPause() {
		MobclickAgent.onPause(this);
		super.onPause();
	}

	/**
	 * 右边字母表的排列事件
	 */
	@Override
	public void onTouchingLetterChanged(int groupPosition) {
		expandable.setSelectedGroup(groupPosition);
	}

	/**
	 * 点击child事件
	 */
	@Override
	public boolean onChildClick(ExpandableListView parent, View v,
			int groupPosition, int childPosition, long id) {
		System.out.println("groupPosition=" + groupPosition + "    "
				+ "childPosition=" + childPosition);
		if (adapter != null) {
			adapter = null;
		}

		childxh.clear();

		String s = "CX_" + groupPosition + "_" + childPosition + "";
		for (int i = 0; i < cxs.get(s).length; i++) {
			childxh.add(cxs.get(s)[i]);
		}
		adapter = new ChildxhAdapter(this, childxh);
		lv_childxh.setAdapter(adapter);
		adapter.notifyDataSetChanged();
		pp=childList.get(groupPosition).get(childPosition);
		tv_childpp.setText(childList.get(groupPosition).get(childPosition));
		i=rl_childxh.getVisibility();
		if (i == View.GONE) {
			rl_childxh.setAnimation(a.t_Animation());
			rl_childxh.setVisibility(View.VISIBLE);
			iv_yy_xxpp.setVisibility(View.VISIBLE);
		}
		
		return false;
	}
	
	
	/**
	 *  
	 */
	@Override
	public void onGroupCollapse(int groupPosition) {
		if (expandable.isGroupExpanded(groupPosition)) {
			return;
		} else {
			expandable.expandGroup(groupPosition);
		}
	}

	private void initGroupList() {
		for (int i = 0; i < ZIMU.length; i++) {
			groupList.add(ZIMU[i]);
		}
	}

	private void initChildList() {
		ArrayList<String> A = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_A.length; i++) {
			A.add(PINPAI_STRS_A[i]);
		}
		ArrayList<String> B = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_B.length; i++) {
			B.add(PINPAI_STRS_B[i]);
		}
		ArrayList<String> C = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_C.length; i++) {
			C.add(PINPAI_STRS_C[i]);
		}
		ArrayList<String> D = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_D.length; i++) {
			D.add(PINPAI_STRS_D[i]);
		}
		ArrayList<String> F = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_F.length; i++) {
			F.add(PINPAI_STRS_F[i]);
		}
		ArrayList<String> G = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_G.length; i++) {
			G.add(PINPAI_STRS_G[i]);
		}
		ArrayList<String> H = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_H.length; i++) {
			H.add(PINPAI_STRS_H[i]);
		}
		ArrayList<String> J = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_J.length; i++) {
			J.add(PINPAI_STRS_J[i]);
		}
		ArrayList<String> K = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_K.length; i++) {
			K.add(PINPAI_STRS_K[i]);
		}
		ArrayList<String> L = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_L.length; i++) {
			L.add(PINPAI_STRS_L[i]);
		}
		ArrayList<String> M = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_M.length; i++) {
			M.add(PINPAI_STRS_M[i]);
		}
		ArrayList<String> N = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_N.length; i++) {
			N.add(PINPAI_STRS_N[i]);
		}
		ArrayList<String> O = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_O.length; i++) {
			O.add(PINPAI_STRS_O[i]);
		}
		ArrayList<String> P = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_P.length; i++) {
			P.add(PINPAI_STRS_P[i]);
		}
		ArrayList<String> Q = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_Q.length; i++) {
			Q.add(PINPAI_STRS_Q[i]);
		}
		ArrayList<String> R = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_R.length; i++) {
			R.add(PINPAI_STRS_R[i]);
		}
		ArrayList<String> S = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_S.length; i++) {
			S.add(PINPAI_STRS_S[i]);
		}
		ArrayList<String> T = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_T.length; i++) {
			T.add(PINPAI_STRS_T[i]);
		}
		ArrayList<String> W = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_W.length; i++) {
			W.add(PINPAI_STRS_W[i]);
		}
		ArrayList<String> X = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_X.length; i++) {
			X.add(PINPAI_STRS_X[i]);
		}
		ArrayList<String> Y = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_Y.length; i++) {
			Y.add(PINPAI_STRS_Y[i]);
		}
		ArrayList<String> Z = new ArrayList<String>();
		for (int i = 0; i < PINPAI_STRS_Z.length; i++) {
			Z.add(PINPAI_STRS_Z[i]);
		}

		childList.add(A);
		childList.add(B);
		childList.add(C);
		childList.add(D);
		childList.add(F);
		childList.add(G);
		childList.add(H);
		childList.add(J);
		childList.add(K);
		childList.add(L);
		childList.add(M);
		childList.add(N);
		childList.add(O);
		childList.add(P);
		childList.add(Q);
		childList.add(R);
		childList.add(S);
		childList.add(T);
		childList.add(W);
		childList.add(X);
		childList.add(Y);
		childList.add(Z);
	}

	private void initChildList_img() {
		ArrayList<Integer> A = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_A.length; i++) {
			A.add(PINPAI_IMGS_A[i]);
		}
		ArrayList<Integer> B = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_B.length; i++) {
			B.add(PINPAI_IMGS_B[i]);
		}
		ArrayList<Integer> C = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_C.length; i++) {
			C.add(PINPAI_IMGS_C[i]);
		}
		ArrayList<Integer> D = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_D.length; i++) {
			D.add(PINPAI_IMGS_D[i]);
		}
		ArrayList<Integer> F = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_F.length; i++) {
			F.add(PINPAI_IMGS_F[i]);
		}
		ArrayList<Integer> G = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_G.length; i++) {
			G.add(PINPAI_IMGS_G[i]);
		}
		ArrayList<Integer> H = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_H.length; i++) {
			H.add(PINPAI_IMGS_H[i]);
		}
		ArrayList<Integer> J = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_J.length; i++) {
			J.add(PINPAI_IMGS_J[i]);
		}
		ArrayList<Integer> K = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_K.length; i++) {
			K.add(PINPAI_IMGS_K[i]);
		}
		ArrayList<Integer> L = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_L.length; i++) {
			L.add(PINPAI_IMGS_L[i]);
		}
		ArrayList<Integer> M = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_M.length; i++) {
			M.add(PINPAI_IMGS_M[i]);
		}
		ArrayList<Integer> N = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_N.length; i++) {
			N.add(PINPAI_IMGS_N[i]);
		}
		ArrayList<Integer> O = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_O.length; i++) {
			O.add(PINPAI_IMGS_O[i]);
		}
		ArrayList<Integer> P = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_P.length; i++) {
			P.add(PINPAI_IMGS_P[i]);
		}
		ArrayList<Integer> Q = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_Q.length; i++) {
			Q.add(PINPAI_IMGS_Q[i]);
		}
		ArrayList<Integer> R = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_R.length; i++) {
			R.add(PINPAI_IMGS_R[i]);
		}
		ArrayList<Integer> S = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_S.length; i++) {
			S.add(PINPAI_IMGS_S[i]);
		}
		ArrayList<Integer> T = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_T.length; i++) {
			T.add(PINPAI_IMGS_T[i]);
		}
		ArrayList<Integer> W = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_W.length; i++) {
			W.add(PINPAI_IMGS_W[i]);
		}
		ArrayList<Integer> X = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_X.length; i++) {
			X.add(PINPAI_IMGS_X[i]);
		}
		ArrayList<Integer> Y = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_Y.length; i++) {
			Y.add(PINPAI_IMGS_Y[i]);
		}
		ArrayList<Integer> Z = new ArrayList<Integer>();
		for (int i = 0; i < PINPAI_IMGS_Z.length; i++) {
			Z.add(PINPAI_IMGS_Z[i]);
		}

		childList_IMG.add(A);
		childList_IMG.add(B);
		childList_IMG.add(C);
		childList_IMG.add(D);
		childList_IMG.add(F);
		childList_IMG.add(G);
		childList_IMG.add(H);
		childList_IMG.add(J);
		childList_IMG.add(K);
		childList_IMG.add(L);
		childList_IMG.add(M);
		childList_IMG.add(N);
		childList_IMG.add(O);
		childList_IMG.add(P);
		childList_IMG.add(Q);
		childList_IMG.add(R);
		childList_IMG.add(S);
		childList_IMG.add(T);
		childList_IMG.add(W);
		childList_IMG.add(X);
		childList_IMG.add(Y);
		childList_IMG.add(Z);
	}

	private void initChildXH() {
		cxs.put("CX_0_0", CX_0_0);
		cxs.put("CX_0_1", CX_0_1);
		cxs.put("CX_0_2", CX_0_2);
		cxs.put("CX_0_3", CX_0_3);
		cxs.put("CX_0_4", CX_0_4);
		cxs.put("CX_0_5", CX_0_5);
		cxs.put("CX_1_0", CX_1_0);
		cxs.put("CX_1_1", CX_1_1);
		cxs.put("CX_1_2", CX_1_2);
		cxs.put("CX_1_3", CX_1_3);
		cxs.put("CX_1_4", CX_1_4);
		cxs.put("CX_1_5", CX_1_5);
		cxs.put("CX_1_6", CX_1_6);
		cxs.put("CX_1_7", CX_1_7);
		cxs.put("CX_1_8", CX_1_8);
		cxs.put("CX_1_9", CX_1_9);
		cxs.put("CX_1_10", CX_1_10);
		cxs.put("CX_1_11", CX_1_11);
		cxs.put("CX_1_12", CX_1_12);
		cxs.put("CX_1_13", CX_1_13);
		cxs.put("CX_1_14", CX_1_14);
		cxs.put("CX_1_15", CX_1_15);
		cxs.put("CX_2_0", CX_2_0);
		cxs.put("CX_2_1", CX_2_1);
		cxs.put("CX_2_2", CX_2_2);
		cxs.put("CX_2_3", CX_2_3);
		cxs.put("CX_2_4", CX_2_4);
		cxs.put("CX_3_0", CX_3_0);
		cxs.put("CX_3_1", CX_3_1);
		cxs.put("CX_3_2", CX_3_2);
		cxs.put("CX_3_3", CX_3_3);
		cxs.put("CX_3_4", CX_3_4);
		cxs.put("CX_3_5", CX_3_5);
		cxs.put("CX_3_6", CX_3_6);
		cxs.put("CX_3_7", CX_3_7);
		cxs.put("CX_3_8", CX_3_8);
		cxs.put("CX_3_9", CX_3_9);
		cxs.put("CX_4_0", CX_4_0);
		cxs.put("CX_4_1", CX_4_1);
		cxs.put("CX_4_2", CX_4_2);
		cxs.put("CX_4_3", CX_4_3);
		cxs.put("CX_4_4", CX_4_4);
		cxs.put("CX_4_5", CX_4_5);
		cxs.put("CX_5_0", CX_5_0);
		cxs.put("CX_5_1", CX_5_1);
		cxs.put("CX_5_2", CX_5_2);
		cxs.put("CX_6_0", CX_6_0);
		cxs.put("CX_6_1", CX_6_1);
		cxs.put("CX_6_2", CX_6_2);
		cxs.put("CX_6_3", CX_6_3);
		cxs.put("CX_6_4", CX_6_4);
		cxs.put("CX_6_5", CX_6_5);
		cxs.put("CX_6_6", CX_6_6);
		cxs.put("CX_6_7", CX_6_7);
		cxs.put("CX_6_8", CX_6_8);
		cxs.put("CX_6_9", CX_6_9);
		cxs.put("CX_6_10", CX_6_10);
		cxs.put("CX_6_11", CX_6_11);
		cxs.put("CX_7_0", CX_7_0);
		cxs.put("CX_7_1", CX_7_1);
		cxs.put("CX_7_2", CX_7_2);
		cxs.put("CX_7_3", CX_7_3);
		cxs.put("CX_7_4", CX_7_4);
		cxs.put("CX_7_5", CX_7_5);
		cxs.put("CX_7_6", CX_7_6);
		cxs.put("CX_7_7", CX_7_7);
		cxs.put("CX_7_8", CX_7_8);
		cxs.put("CX_8_0", CX_8_0);
		cxs.put("CX_8_1", CX_8_1);
		cxs.put("CX_8_2", CX_8_2);
		cxs.put("CX_8_3", CX_8_3);
		cxs.put("CX_9_0", CX_9_0);
		cxs.put("CX_9_1", CX_9_1);
		cxs.put("CX_9_2", CX_9_2);
		cxs.put("CX_9_3", CX_9_3);
		cxs.put("CX_9_4", CX_9_4);
		cxs.put("CX_9_5", CX_9_5);
		cxs.put("CX_9_6", CX_9_6);
		cxs.put("CX_9_7", CX_9_7);
		cxs.put("CX_9_8", CX_9_8);
		cxs.put("CX_9_9", CX_9_9);
		cxs.put("CX_9_10", CX_9_10);
		cxs.put("CX_9_11", CX_9_11);
		cxs.put("CX_9_12", CX_9_12);
		cxs.put("CX_9_13", CX_9_13);
		cxs.put("CX_9_14", CX_9_14);
		cxs.put("CX_9_15", CX_9_15);
		cxs.put("CX_10_0", CX_10_0);
		cxs.put("CX_10_1", CX_10_1);
		cxs.put("CX_10_2", CX_10_2);
		cxs.put("CX_10_3", CX_10_3);
		cxs.put("CX_10_4", CX_10_4);
		cxs.put("CX_10_5", CX_10_5);
		cxs.put("CX_11_0", CX_11_0);
		cxs.put("CX_12_0", CX_12_0);
		cxs.put("CX_12_1", CX_12_1);
		cxs.put("CX_13_0", CX_13_0);
		cxs.put("CX_13_1", CX_13_1);
		cxs.put("CX_14_0", CX_14_0);
		cxs.put("CX_14_1", CX_14_1);
		cxs.put("CX_14_2", CX_14_2);
		cxs.put("CX_14_3", CX_14_3);
		cxs.put("CX_14_4", CX_14_4);
		cxs.put("CX_15_0", CX_15_0);
		cxs.put("CX_15_1", CX_15_1);
		cxs.put("CX_15_2", CX_15_2);
		cxs.put("CX_16_0", CX_16_0);
		cxs.put("CX_16_1", CX_16_1);
		cxs.put("CX_16_2", CX_16_2);
		cxs.put("CX_16_3", CX_16_3);
		cxs.put("CX_16_4", CX_16_4);
		cxs.put("CX_16_5", CX_16_5);
		cxs.put("CX_16_6", CX_16_6);
		cxs.put("CX_16_7", CX_16_7);
		cxs.put("CX_16_8", CX_16_8);
		cxs.put("CX_16_9", CX_16_9);
		cxs.put("CX_17_0", CX_17_0);
		cxs.put("CX_17_1", CX_17_1);
		cxs.put("CX_17_2", CX_17_2);
		cxs.put("CX_17_3", CX_17_3);
		cxs.put("CX_18_0", CX_18_0);
		cxs.put("CX_18_1", CX_18_1);
		cxs.put("CX_18_2", CX_18_2);
		cxs.put("CX_18_3", CX_18_3);
		cxs.put("CX_18_4", CX_18_4);
		cxs.put("CX_18_5", CX_18_5);
		cxs.put("CX_19_0", CX_19_0);
		cxs.put("CX_19_1", CX_19_1);
		cxs.put("CX_19_2", CX_19_2);
		cxs.put("CX_19_3", CX_19_3);
		cxs.put("CX_19_4", CX_19_4);
		cxs.put("CX_19_5", CX_19_5);
		cxs.put("CX_20_0", CX_20_0);
		cxs.put("CX_20_1", CX_20_1);
		cxs.put("CX_20_2", CX_20_2);
		cxs.put("CX_20_3", CX_20_3);
		cxs.put("CX_20_4", CX_20_4);
		cxs.put("CX_21_0", CX_21_0);
		cxs.put("CX_21_1", CX_21_1);
		cxs.put("CX_21_2", CX_21_2);
	}
}
